/****************************************************************************
**
** Copyright (C) 2012 R√≥bert M√°rki
**
** This file is part of Web Feeds.
**
** Web Feeds is free software: you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation, either version 3 of the License, or
** (at your option) any later version.
**
** Web Feeds is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with Web Feeds.  If not, see <http://www.gnu.org/licenses/>.
****************************************************************************/

import QtQuick 1.1
import com.nokia.meego 1.0
import com.nokia.extras 1.1
import WebFeeds 1.0
import "../../../shared/qml" as Shared
import "../../../shared/qml/UIConstants.js" as UIConstants

Shared.CommonSheet {
    id: root

    rejectButtonText: qsTr("Close")
    title: qsTr("Web Feeds")
    iconSource: "qrc:/app/webfeeds_64.png"

    contentItem: Item {
        anchors.fill: parent
        Label {
            width: parent.width
            font.family: UIConstants.FONT_FAMILY_LIGHT
            anchors.top: parent.top
            anchors.topMargin: UIConstants.DEFAULT_MARGIN * 3
            horizontalAlignment: Text.AlignHCenter
            textFormat: Text.RichText
            text: "Client for various Web-based feed aggregator services.<br />"
                  + "Version: 0.3.0<br />"
                  + "Copyright (C) 2012 <a href=\"mailto:gsmiko@gmail.com?subject=Web Feeds\">R√≥bert M√°rki</a>";
            onLinkActivated: Qt.openUrlExternally(link);
        }
        Label {
            width: parent.width
            font.family: UIConstants.FONT_FAMILY_LIGHT
            anchors.bottom: parent.bottom
            anchors.bottomMargin: UIConstants.DEFAULT_MARGIN * 2
            horizontalAlignment: Text.AlignHCenter
            textFormat: Text.RichText
            text: "<a href=\"http://projects.developer.nokia.com/feed_reader\">Web Feeds project</a><br />"
                  + "<a href=\"http://www.gnu.org/licenses/gpl-3.0.html\">GNU General Public License Version 3</a>";
            onLinkActivated: Qt.openUrlExternally(link);
        }
    }
}
